package com.ruoyi.auth.service;

import com.ruoyi.common.core.web.domain.AjaxResult;

import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.student.dong.domain.AlgsStudent;

import com.student.dong.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;



/**
 * @Program: animalSystem->IAlgsStudentService
 * @Description:
 * @Author: donghang
 * @Date: 2023-03-16 14:58
 * @Version： 1.0
 **/
@FeignClient("animal-dong")
public interface IAlgsStudentService {

    /**
     * 新增(注册)学生信息
     */
    //@RequiresPermissions("student:student:add")
    @Log(title = "(注册)学生信息", businessType = BusinessType.INSERT)
    @PostMapping("/student/add")
    public AjaxResult add(@RequestBody AlgsStudent algsStudent);



    /**
     * 根据用户名查询对象
     */
    //@RequiresPermissions("student:student:edit")
    @Log(title = "(注册)学生信息", businessType = BusinessType.UPDATE)
    @PutMapping("/student/selOne")
    public Result selByUserName(@RequestBody AlgsStudent algsStudent);
}
